import request from "@/utils/request"

export function getListByPage(params: any) {
  return request({
    params,
    url: "photoManage/photo/list",
    method: "get"
  })
}

export function getInfoById(params: any) {
  return request({
    params,
    url: "photoManage/photo/getById",
    method: "get"
  })
}

export function getTags() {
  return request({
    url: "photoManage/photo/getTags",
    method: "get"
  })
}

export function addphoto(data: any) {
  return request({
    data,
    url: "photoManage/photo/add",
    method: "post"
  })
}

export function editphoto(data: any) {
  return request({
    data,
    url: "photoManage/photo/edit",
    method: "post"
  })
}

export function photoDelete(params: any) {
  return request({
    params,
    url: "photoManage/photo/delete",
    method: "DELETE"
  })
}
